package com.example.hemin.fnb.ui.adapter;

import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.hemin.fnb.R;
import com.example.hemin.fnb.ui.bean.ClassListBean;
import com.example.hemin.fnb.ui.bean.MessageBean1;

import java.util.List;


public class FindClassAdapter extends BaseQuickAdapter<ClassListBean.DataBean.RecordsBean, BaseViewHolder> {


    public FindClassAdapter(int layoutResId, @Nullable List<ClassListBean.DataBean.RecordsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ClassListBean.DataBean.RecordsBean item) {


            Glide.with(mContext).load(item.getClassroomUrl()).into((ImageView) helper.getView(R.id.messahe_image1));
            helper.getView(R.id.play).setVisibility(View.VISIBLE);

        helper.setText(R.id.message_titl1,item.getClassroomName()).setText(R.id.titl2,item.getClassroomStage());

    }


}
